<template>
  <div class="hello">
  <div>
      <el-radio v-model="radio" label="1"  @change="falig">备选项</el-radio>
      <el-radio v-model="radio" label="2"  @change="falig">备选项</el-radio>
  </div>

    <div>
    <el-radio-group v-model="radio1" @change="radio2()">
      <el-radio-button label="上海"></el-radio-button>
      <el-radio-button label="北京"></el-radio-button>
      <el-radio-button label="广州"></el-radio-button>
      <el-radio-button label="深圳"></el-radio-button>
    </el-radio-group>
  </div>
  </div>
</template>

<script>
export default {
  name: "HelloWorld",
  props: {
    msg: String
  },
  data() {
    return {
      radio : 1,
      radio1 : 1
    };
  },
  created() {},
  methods: {
    falig() {
      alert("你点击了");
    },
    radio2(){
      alert('点击了')
    }
  }
};
</script>

